package com.ktwlsoft.archivemanage.payload.role;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.codehaus.jackson.annotate.JsonIgnore;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

@Getter
@Setter
public class EditRoleRequest {
    @ApiModelProperty("角色id")
    @NotNull(message = "角色Id不能为空")
    private Long roleId;

    @ApiModelProperty("角色名称")
    @Size(max = 10, min = 1, message = "角色名称限制在1~10个字符")
    private String roleName;

    @ApiModelProperty("备注")
    @Size(max = 30, message = "备注不能超过30字符")
    private String remark;

    @ApiModelProperty("更新时间，默认是服务器当前时间")
    private Date updateAt = new Date();
}
